package com.qctpos.crm.domain.mapstruct;


import com.qctpos.crm.domain.dto.DemoListDto;
import com.qctpos.crm.domain.entity.Demo1;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

@Mapper
public interface StructMapper {

    /*java: Internal error in the mapping processor: java.lang.NullPointerException
    解决：
    Setting -->Build,Execution,Deployment -->Compiler -->User-local build加上参数：
            -Djps.track.ap.dependencies=false*/

    StructMapper INSTANCE = Mappers.getMapper(StructMapper.class);

    @Mapping(source = "storeName", target = "storeName")
    DemoListDto demo1ToDemoListDto(Demo1 demo1);

    @Mapping(source = "storeName", target = "storeName")
    Demo1 DemoListDtoToDemo1(DemoListDto demoListDto);
}
